/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package pe.gob.pnp.actions;
import com.opensymphony.xwork2.*;
import java.sql.*;
import java.util.*;
import pe.gob.pnp.despachadores.*;
/**
 *
 * @author Jesus
 */
public class ListaAccionTramite extends ActionSupport
{
    private List <AccionTramite> lstAccionTramite;

    @Override
    public String execute(){
        try{
            setLstAccionTramite(AccionTramiteDespachador.obtenerAccionTramite());
        }catch(SQLException ex){
            ex.printStackTrace();
            return ERROR;
        }
        return SUCCESS;
    }

    /**
     * @return the lstAccionTramite
     */
    public List<AccionTramite> getLstAccionTramite() {
        return lstAccionTramite;
    }

    /**
     * @param lstAccionTramite the lstAccionTramite to set
     */
    public void setLstAccionTramite(List<AccionTramite> lstAccionTramite) {
        this.lstAccionTramite = lstAccionTramite;
    }
}
